package com.hj.exception;

/**
 * @author hj
 * @Date 2023/4/26
 * @Description: 异常枚举类
 */
public enum HjExceptionEnum {

    /**
     * 异常码
     */
    PWD_WRONG(403, "密码输入有误"),
    PARAM_ERR(403, "参数错误"),
    ACCOUNT_PARAM_ERR(403, "账号或者密码错误"),
    SMS_SEND_ERR(403, "短信发送失败"),
    CAPTCHA_ERR(403, "验证码错误"),
    EMAIL_ERR(403, "邮箱验证码发送错误"),
    TOKEN_EXPIRE(403, "登录信息已过期,请重新登录"),
    NO_FILE(403, "请选择文件"),


    ;

    HjExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
